package com.qinggeng.project.system.domain;

import com.qinggeng.framework.aspectj.lang.annotation.Excel;
import com.qinggeng.framework.web.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 商品库存信息对象 goods_keep
 *
 * @author qinggeng
 * @date 2020-06-15
 */
@Data
public class GoodsKeep extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 库存ID */
    private Long keepId;

    /** 所属商品 */
    @Excel(name = "所属商品")
    private Long goodsId;

    /** 库存 */
    @Excel(name = "库存")
    private Integer keepNum;

    /** 销量 */
    @Excel(name = "销量")
    private Integer saleNum;

    /** 商品价格 */
    @Excel(name = "商品价格")
    private BigDecimal goodsPrice;

    /** 划线价格 */
    @Excel(name = "划线价格")
    private BigDecimal linePrice;

    /** 商品状态 10=下架 20=上架 */
    @Excel(name = "商品状态 10=下架 20=上架")
    private String status;

    /** 商品标签 */
    @Excel(name = "商品标签")
    private String goodsMark;

    /** 是否删除 10=未删除 20=已删除 */
    @Excel(name = "是否删除 10=未删除 20=已删除")
    private String delFalg;

    //商品名称
    private String goodsName;

    //店铺编号
    private Long shopId;

    public Long getKeepId() {
        return keepId;
    }

    public void setKeepId(Long keepId) {
        this.keepId = keepId;
    }

    public Long getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Long goodsId) {
        this.goodsId = goodsId;
    }

    public Integer getKeepNum() {
        return keepNum;
    }

    public void setKeepNum(Integer keepNum) {
        this.keepNum = keepNum;
    }

    public Integer getSaleNum() {
        return saleNum;
    }

    public void setSaleNum(Integer saleNum) {
        this.saleNum = saleNum;
    }

    public BigDecimal getGoodsPrice() {
        return goodsPrice;
    }

    public void setGoodsPrice(BigDecimal goodsPrice) {
        this.goodsPrice = goodsPrice;
    }

    public BigDecimal getLinePrice() {
        return linePrice;
    }

    public void setLinePrice(BigDecimal linePrice) {
        this.linePrice = linePrice;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getGoodsMark() {
        return goodsMark;
    }

    public void setGoodsMark(String goodsMark) {
        this.goodsMark = goodsMark;
    }

    public String getDelFalg() {
        return delFalg;
    }

    public void setDelFalg(String delFalg) {
        this.delFalg = delFalg;
    }

    public String getGoodsName() {
        return goodsName;
    }

    public void setGoodsName(String goodsName) {
        this.goodsName = goodsName;
    }

    public Long getShopId() {
        return shopId;
    }

    public void setShopId(Long shopId) {
        this.shopId = shopId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("keepId", getKeepId())
            .append("goodsId", getGoodsId())
            .append("keepNum", getKeepNum())
            .append("saleNum", getSaleNum())
            .append("goodsPrice", getGoodsPrice())
            .append("linePrice", getLinePrice())
            .append("status", getStatus())
            .append("goodsMark", getGoodsMark())
            .append("delFalg", getDelFalg())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
